#ifndef TILESET_OBJECT_GROUP_HPP
#define TILESET_OBJECT_GROUP_HPP

#include <string>
#include <vector>
#include <tinyxml.h>
namespace Tmx {
  class Object;
  class ObjectGroup {
  public:
    ObjectGroup(int _depth);
	~ObjectGroup();
	void parse(TiXmlNode *objectGroupNode);
	std::string getName() {return name;}
	std::string getColor() {return color;}
	int getX() {return x;}
	int getY() {return y;}
	int getWidth() {return width;}
	int getHeight() {return height;}
	int getDepth() {return depth;}
	float getOpacity() {return opacity;}
	bool isVisible() {return (visible == 1);}
	std::vector<Object *> getObjects() {return objects;}
	int getNumObjects() {return objects.size();}
	Object *getObject(int index) {return objects.at(index);}
  private:
    std::string name;
	std::string color;
	int x;
	int y;
	int width;
	int height;
	int depth;
	float opacity;
	int visible;
	std::vector<Object *> objects;
  }; // class ObjectGroup
}; // namespace Tmx

#endif
